package cate.common.table.farm.adventure.sheet;

import cate.common.table.ESheet;
import cate.common.table.farm.adventure.row.AdventureCharpterRow;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
import java.util.List;

public class AdventureCharpterSheet extends ESheet<AdventureCharpterRow> {
    public List<Integer> specialRewardIdList = new ArrayList<>();
    @Override
    public String getSheetName() {
        return "章节关卡";
    }

    @Override
    protected void onRowCreated(AdventureCharpterRow row) {
        if (row != null && StringUtils.isNotBlank(row.specialRewardStr)) {
            specialRewardIdList.add(row.id);
        }
    }
}
